<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跨域请求</title>
</head>
<form action="http://localhost/tp5.1/public/Rely" method="post" enctype="multipart/form-data">
    <input type="file" name="image">
    <input type="submit" id="button" value="确定">
</form>
<hr>
<form action="http://localhost/tp5.1/public/Rely" method="post">
    <input type="text" name="name" value="Lee">
    <input type="submit" id="button" value="确定">
</form>
<hr>
<!--AJAX/PJAX伪装 使用？_ajax ?_pjax -->
<form action="http://localhost/tp5.1/public/Rely?_ajax=1" method="post">
    <input type="text" name="name" value="Lee">
    <input type="hidden" name="_method" value="PUT">  <!--伪造请求-->
    <input type="submit" id="button" value="确定">
</form>

<hr>
<!--单个上传-->
<form action="http://localhost/tp5.1/public/Upload" method="post" enctype="multipart/form-data">
    <input type="file" name="image">
    <input type="submit" value="提交">
</form>
<br>
<!--批量上传-->
<form action="http://localhost/tp5.1/public/Upload/uploads" method="post" enctype="multipart/form-data">
    <input type="file" name="image[]">
    <input type="file" name="image[]">
    <input type="file" name="image[]">
    <input type="submit" value="提交">
</form>
</body>
</html>